<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The SWFDisplayItem class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swfbutton.setup.html">SWFButton::setUp</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swfdisplayitem.addaction.html">SWFDisplayItem::addAction</a></div>
 <div class="up"><a href="book.ming.html">Ming</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.swfdisplayitem" class="reference">
 <h1 class="title">The SWFDisplayItem class</h1>
 
 
 <div class="partintro"><p class="verinfo">(PHP 5 &lt;= 5.3.0, PECL ming SVN)</p>
 

  <div class="section" id="swfdisplayitem.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    SWFDisplayItem.
   </p>
  </div>

 
  <div class="section" id="swfdisplayitem.synopsis">
   <h2 class="title">类摘要</h2>
 

   <div class="classsynopsis">
    <div class="ooclass"></div>
 

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">SWFDisplayItem</strong>
     </span>
     {</div>

 
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.addaction.html" class="methodname">addAction</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.swfaction.html" class="type SWFAction">SWFAction</a></span> <code class="parameter">$action</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.addcolor.html" class="methodname">addColor</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$red</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$green</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$blue</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$a</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.endmask.html" class="methodname">endMask</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">float</span><span class="methodname"><a href="swfdisplayitem.getrot.html" class="methodname">getRot</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">float</span><span class="methodname"><a href="swfdisplayitem.getx.html" class="methodname">getX</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">float</span><span class="methodname"><a href="swfdisplayitem.getxscale.html" class="methodname">getXScale</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">float</span><span class="methodname"><a href="swfdisplayitem.getxskew.html" class="methodname">getXSkew</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">float</span><span class="methodname"><a href="swfdisplayitem.gety.html" class="methodname">getY</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">float</span><span class="methodname"><a href="swfdisplayitem.getyscale.html" class="methodname">getYScale</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">float</span><span class="methodname"><a href="swfdisplayitem.getyskew.html" class="methodname">getYSkew</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.move.html" class="methodname">move</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$dx</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$dy</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.moveto.html" class="methodname">moveTo</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.multcolor.html" class="methodname">multColor</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$red</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$green</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$blue</code></span>
   [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$a</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.remove.html" class="methodname">remove</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.rotate.html" class="methodname">rotate</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$angle</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.rotateto.html" class="methodname">rotateTo</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$angle</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.scale.html" class="methodname">scale</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$dx</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$dy</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.scaleto.html" class="methodname">scaleTo</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$x</code></span>
   [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$y</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.setdepth.html" class="methodname">setDepth</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$depth</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.setmasklevel.html" class="methodname">setMaskLevel</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$level</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.setmatrix.html" class="methodname">setMatrix</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$a</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$b</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$c</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$d</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$x</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.setname.html" class="methodname">setName</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.setratio.html" class="methodname">setRatio</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$ratio</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.skewx.html" class="methodname">skewX</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$ddegrees</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.skewxto.html" class="methodname">skewXTo</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$degrees</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.skewy.html" class="methodname">skewY</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$ddegrees</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfdisplayitem.skewyto.html" class="methodname">skewYTo</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$degrees</code></span>
   )</div>

 
   }</div>

 
  </div>
 </div>
 







 

































































 
























































































 
<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="swfdisplayitem.addaction.html">SWFDisplayItem::addAction</a> — Adds this SWFAction to the given SWFSprite instance</li><li><a href="swfdisplayitem.addcolor.html">SWFDisplayItem::addColor</a> — Adds the given color to this item's color transform</li><li><a href="swfdisplayitem.endmask.html">SWFDisplayItem::endMask</a> — Another way of defining a MASK layer</li><li><a href="swfdisplayitem.getrot.html">SWFDisplayItem::getRot</a> — 说明</li><li><a href="swfdisplayitem.getx.html">SWFDisplayItem::getX</a> — 说明</li><li><a href="swfdisplayitem.getxscale.html">SWFDisplayItem::getXScale</a> — 说明</li><li><a href="swfdisplayitem.getxskew.html">SWFDisplayItem::getXSkew</a> — 说明</li><li><a href="swfdisplayitem.gety.html">SWFDisplayItem::getY</a> — 说明</li><li><a href="swfdisplayitem.getyscale.html">SWFDisplayItem::getYScale</a> — 说明</li><li><a href="swfdisplayitem.getyskew.html">SWFDisplayItem::getYSkew</a> — 说明</li><li><a href="swfdisplayitem.move.html">SWFDisplayItem::move</a> — Moves object in relative coordinates</li><li><a href="swfdisplayitem.moveto.html">SWFDisplayItem::moveTo</a> — Moves object in global coordinates</li><li><a href="swfdisplayitem.multcolor.html">SWFDisplayItem::multColor</a> — Multiplies the item's color transform</li><li><a href="swfdisplayitem.remove.html">SWFDisplayItem::remove</a> — Removes the object from the movie</li><li><a href="swfdisplayitem.rotate.html">SWFDisplayItem::rotate</a> — Rotates in relative coordinates</li><li><a href="swfdisplayitem.rotateto.html">SWFDisplayItem::rotateTo</a> — Rotates the object in global coordinates</li><li><a href="swfdisplayitem.scale.html">SWFDisplayItem::scale</a> — Scales the object in relative coordinates</li><li><a href="swfdisplayitem.scaleto.html">SWFDisplayItem::scaleTo</a> — Scales the object in global coordinates</li><li><a href="swfdisplayitem.setdepth.html">SWFDisplayItem::setDepth</a> — Sets z-order</li><li><a href="swfdisplayitem.setmasklevel.html">SWFDisplayItem::setMaskLevel</a> — Defines a MASK layer at level</li><li><a href="swfdisplayitem.setmatrix.html">SWFDisplayItem::setMatrix</a> — Sets the item's transform matrix</li><li><a href="swfdisplayitem.setname.html">SWFDisplayItem::setName</a> — Sets the object's name</li><li><a href="swfdisplayitem.setratio.html">SWFDisplayItem::setRatio</a> — Sets the object's ratio</li><li><a href="swfdisplayitem.skewx.html">SWFDisplayItem::skewX</a> — Sets the X-skew</li><li><a href="swfdisplayitem.skewxto.html">SWFDisplayItem::skewXTo</a> — Sets the X-skew</li><li><a href="swfdisplayitem.skewy.html">SWFDisplayItem::skewY</a> — Sets the Y-skew</li><li><a href="swfdisplayitem.skewyto.html">SWFDisplayItem::skewYTo</a> — Sets the Y-skew</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swfbutton.setup.html">SWFButton::setUp</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swfdisplayitem.addaction.html">SWFDisplayItem::addAction</a></div>
 <div class="up"><a href="book.ming.html">Ming</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
